function getOffsetX(event) {
    if (event.currentTarget.paused) {
        if (isNaN(event.currentTarget.duration))
            return;
        var evt = event || window.event;
        var srcObj = evt.target || evt.srcElement;
        var result;
        if (evt.offsetX) {
            result = evt.offsetX / event.target.clientWidth
        } else {
            var rect = srcObj.getBoundingClientRect();
            var clientx = evt.clientX;
            result = (clientx - rect.left) / event.target.clientWidth;
        }
        var futuretime = result * event.currentTarget.duration;
        if (Math.abs(futuretime - event.currentTarget.currentTime) * 100 / event.currentTarget.duration > 5)
            event.currentTarget.currentTime = futuretime;
    }
}
var hosturl = "";
if (location.protocol == "http:")
    hosturl = "http://jiemov.cn:18080"
else
    hosturl = "https://jiemov.cn:18081"